package org.wzl._360mallbackend.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.wzl._360mallbackend.dto.CommodityDTO;
import org.wzl._360mallbackend.entity.Category;
import org.wzl._360mallbackend.entity.Commodity;

import java.util.List;

@Mapper
public interface CommodityDao extends BaseMapper<Commodity> {
    CommodityDTO getById(@Param("id") Integer id);

    List<Commodity> getCommodityByCategoryIds(List<Category> list);
}
